package vip.xiaonuo.barn.modular.barn.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 栏舍视图
 * @author
 * @date 2023/12/26、11:16
 */
@Getter
@Setter
@TableName("barn_view")
public class BarnView {
    /** 栏舍id */
    @TableId
    @ApiModelProperty(value = "栏舍id", position = 1)
    private String id;

    /** 栏舍名 */
    @ApiModelProperty(value = "栏舍名", position = 3)
    private String name;

    /** 父鸡舍id */
    @ApiModelProperty(value = "父鸡舍id", position = 2)
    private Integer henhouseId;

    /** 父鸡舍名 */
    @ApiModelProperty(value = "父鸡舍名", position = 2)
    private String henhouseName;

    /** 栏舍容量 */
    @ApiModelProperty(value = "栏舍容量", position = 4)
    private Integer capacity;

    /** 栏舍状态 */
    @ApiModelProperty(value = "栏舍状态", position = 5)
    private String state;

    /** 排序码 */
    @ApiModelProperty(value = "排序码", position = 6)
    private Integer sortCode;

    /** 创建时间 */
    @ApiModelProperty(value = "创建时间", position = 7)
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /** 修改时间 */
    @ApiModelProperty(value = "修改时间", position = 8)
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;
}
